package com.xh.bussiness.course.service;

import com.xh.bussiness.course.bean.dto.CourseDto;
import com.xh.bussiness.course.bean.request.CourseRequest;
import com.xh.bussiness.course.model.Course;
import com.xh.core.bean.XhPage;
import com.xh.core.service.IBaseService;

import java.util.List;

public interface ICourseService extends IBaseService<Course> {

    public XhPage<CourseDto> queryPage(XhPage page, CourseRequest bean);

    Course add(CourseRequest bean);

    Course modify(CourseRequest bean);

    List<CourseDto> query(CourseRequest bean);

    CourseDto queryOne(CourseRequest bean);

    XhPage<CourseDto> queryNearCourseIndex(XhPage page,CourseRequest bean);

    Integer queryCourseCount(CourseRequest request);

    List<Course> queryBySubject(String subject, String name);

    String changePublishStatus(String courseId, Integer status);

    Course changeCourseSetStep(String courseId, Integer step);
}
